package com.cloudservice.ccs.mapper;


import com.cloudservice.ccs.entity.BlackList;
import com.cloudservice.ccs.model.BlackListDetail;
import com.cloudservice.ccs.model.BlackListWithCustomerServiceNickName;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;
import java.util.Map;

@Mapper
public interface BlackListMapper {
    int save(BlackList blackList);

    int update(Integer id, BlackList blackList);

    int delete(Integer id);

    int partialUpdate(Integer id, Map<String, Object> fields);

    BlackList getOne(Integer id);

    List<BlackList> getAll();

    List<BlackListDetail> getAllWithCustomerInfo(@Param("conditions") Map<String, Object> conditions);

    List<BlackListWithCustomerServiceNickName> getByCustomerId(Integer customerId);
}
